<template>

  <div class="content">
    <el-row>
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>店铺列表</el-breadcrumb-item>
        <el-breadcrumb-item v-if="vm.isEdit">编辑店铺 #{{id}}</el-breadcrumb-item>
        <el-breadcrumb-item v-else>添加店铺</el-breadcrumb-item>

      </el-breadcrumb>

    </el-row>

  </div>
</template>

<script>

  export default{
    data(){
      return{
        vm:{
          isEdit:false
        }
      }
    },

    mounted(e) {
      console.log(e,this.$route)

      if(this.$route.params.id>0){
        this.vm.isEdit=true;
        this.id=this.$route.params.id;
      }

    },


  }
</script>
